package org.homeworkteam.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * Teachers 数据表映射
 */
@Data
@AllArgsConstructor // 生成全参数构造方法
@NoArgsConstructor  // 生成无参数构造方法
@TableName("teachers") // 映射到数据库中的 "teachers" 表
public class Teachers {

  @TableId(value = "teacher_id", type = IdType.AUTO) // 主键字段，自动生成
  private Long teacherId;

  private String teacherName;        // 映射到 "teacher_name" 字段
  private String teacherAccount;     // 映射到 "teacher_account" 字段
  private String teacherPassword;    // 映射到 "teacher_password" 字段
  private String teacherCertificate; // 映射到 "teacher_certificate" 字段
  private String teacherIdcard;      // 映射到 "teacher_idcard" 字段
  private String teacherPhone;       // 映射到 "teacher_phone" 字段
  private String teacherSex;         // 映射到 "teacher_sex" 字段
  private String teacherType;        // 应修正数据类型，映射到 "teacher_type" 字段
  private Long schoolId;             // 映射到 "school_id" 字段
}
